package com.java.oop;

public class StudentTest {

    public static void main(String[] args) {
        //创建学生对象
        Student student = new Student();
//        Student student = new Student("张三",20,"男");
        //使用set给属性赋值
        student.setName("张三");
        student.setAge(50);
        student.setGender("男");
        //使用get调用属性的值
        System.out.println(student.getName());
        System.out.println(student.getAge());
    }
}
